package com.naiterui.ehp.bs.patient.handler.data;

import com.naiterui.ehp.bp.bo.patient.MsgMaPublishParamBO;
import com.naiterui.ehp.bp.utils.event.BizEvent;
import lombok.Getter;
import lombok.ToString;

/**
 * 微信小程序
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/5/25 15:47
 **/
@Getter
@ToString(callSuper = true)
public class WxMaMsgEvent extends BizEvent<WxMaMsgData> {

    private int msgType;

    public WxMaMsgEvent(MsgMaPublishParamBO publishParamBO, WxMaMsgData wxMaMsgData) {
        super(publishParamBO, wxMaMsgData, BizEvent.EVENT_TYPE_WXMAMSG);
        this.msgType = eventData.getMsgType();
    }

    @Override
    public MsgMaPublishParamBO getSource() {
        return (MsgMaPublishParamBO) super.getSource();
    }
}
